<?php

namespace app\admin\model;

use think\Model;

/**
 * 社群可查看数
 * @package app\admin\model
 */
class ResourceInitNums extends Model
{
    /**
     * 社群可查看初始值
     * @return array
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\DbException
     * @throws \think\db\exception\ModelNotFoundException
     */
    public static function findResourceInitNums()
    {
        $info = self::where(['id' => 1])->find();
        return $info ? $info->toArray() : [];
    }

}